//
//  FQDetailListTableViewCell.swift
//  SwiftProject
//
//  Created by 董駸 on 2023/4/14.
//

import UIKit

class FQDetailListTableViewCell: BaseTableViewCell {

    let titleLb = QMUILabel(font: .rSFont(14), textColor: .color153)
    let detailLb = QMUILabel(font: .rSFont(14), textColor: .color51)
    
    var data : [String : Any] = [:] {
        didSet {
            titleLb.text = data["title"] as? String
            detailLb.text = data["detail"] as? String
        }
    }
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        selectionStyle = .none
        
        contentView.addSubview(titleLb)
        titleLb.snp.makeConstraints { make in
            make.left.equalTo(24)
            make.centerY.equalToSuperview()
        }
        
        contentView.addSubview(detailLb)
        detailLb.snp.makeConstraints { make in
            make.right.equalTo(-24)
            make.centerY.equalToSuperview()
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
